

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=auto>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/img/favicon.png">
  <link rel="icon" href="/img/favicon.png">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="description" content="Blue~u~u~u">
  <meta name="author" content="Blue~u~u~u">
  <meta name="keywords" content="">
  <meta name="description" content="IDEA导入Spring源码1.下载spring源码 Spring源码现在在由github托管,git地址  https:&#x2F;&#x2F;github.com&#x2F;spring-projects&#x2F;spring-framework&#x2F;tree&#x2F;5.1.x    先把源码下载好，推荐5.0X或者5.1X 2.下载gradle安装配置gradle环境变量  To build you will need Git and J">
<meta property="og:type" content="article">
<meta property="og:title" content="IDEA导入Spring源码">
<meta property="og:url" content="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/index.html">
<meta property="og:site_name" content="Blue~u~u~u~u">
<meta property="og:description" content="IDEA导入Spring源码1.下载spring源码 Spring源码现在在由github托管,git地址  https:&#x2F;&#x2F;github.com&#x2F;spring-projects&#x2F;spring-framework&#x2F;tree&#x2F;5.1.x    先把源码下载好，推荐5.0X或者5.1X 2.下载gradle安装配置gradle环境变量  To build you will need Git and J">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126191825760.png">
<meta property="og:image" content="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126191900085.png">
<meta property="og:image" content="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126194001815.png">
<meta property="og:image" content="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126194132893.png">
<meta property="og:image" content="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126192740437.png">
<meta property="og:image" content="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126192813164.png">
<meta property="og:image" content="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126192852129.png">
<meta property="og:image" content="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126193015207.png">
<meta property="og:image" content="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126195925377.png">
<meta property="og:image" content="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126193245885.png">
<meta property="og:image" content="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126193343526.png">
<meta property="og:image" content="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126193538024.png">
<meta property="og:image" content="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126193820036.png">
<meta property="og:image" content="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126195251922.png">
<meta property="og:image" content="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126195730078.png">
<meta property="og:image" content="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126200402355.png">
<meta property="og:image" content="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126200816658.png">
<meta property="og:image" content="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126200826599.png">
<meta property="og:image" content="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126200934973.png">
<meta property="og:image" content="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126201658911.png">
<meta property="og:image" content="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126201335041.png">
<meta property="article:published_time" content="2021-12-03T12:44:34.000Z">
<meta property="article:modified_time" content="2021-12-09T15:28:28.694Z">
<meta property="article:author" content="Blue~u~u~u">
<meta property="article:tag" content="spring">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126191825760.png">
  
  <title>IDEA导入Spring源码 - Blue~u~u~u~u</title>

  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4/dist/css/bootstrap.min.css" />


  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-markdown-css@4/github-markdown.min.css" />
  <link  rel="stylesheet" href="/lib/hint/hint.min.css" />

  
    
    
      
      <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@10/styles/github-gist.min.css" />
    
  

  
    <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3/dist/jquery.fancybox.min.css" />
  


<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_ba1fz6golrf.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_kmeydafke9r.css">


<link  rel="stylesheet" href="/css/main.css" />

<!-- 自定义样式保持在最底部 -->


  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    var CONFIG = {"hostname":"www.slx.blue","root":"/","version":"1.8.12","typing":{"enable":true,"typeSpeed":180,"cursorChar":"_","loop":true},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"right","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"copy_btn":true,"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":false,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null,"path":"window.location.pathname"}},"search_path":"/local-search.xml"};
  </script>
  <script  src="/js/utils.js" ></script>
  <script  src="/js/color-schema.js" ></script>
<meta name="generator" content="Hexo 5.4.0"></head>

<script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome/css/font-awesome.min.css"/>
<script src="/live2d-widget/autoload.js"></script>


<body>
  <header style="height: 70vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand" href="/">
      <strong>Blue~u~u</strong>
    </a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/">
                <i class="iconfont icon-home-fill"></i>
                首页
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/about/">
                <i class="iconfont icon-user-fill"></i>
                关于
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/links/">
                <i class="iconfont icon-link-fill"></i>
                友链
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
              &nbsp;<i class="iconfont icon-search"></i>&nbsp;
            </a>
          </li>
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">&nbsp;<i
                class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="banner" id="banner" parallax=true
         style="background: url('/images/default.png') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
          <div class="page-header text-center fade-in-up">
            <span class="h2" id="subtitle" title="IDEA导入Spring源码">
              
            </span>

            
              <div class="mt-3">
  
  
    <span class="post-meta">
      <i class="iconfont icon-date-fill" aria-hidden="true"></i>
      <time datetime="2021-12-03 20:44" pubdate>
        2021年12月3日 晚上
      </time>
    </span>
  
</div>

<div class="mt-1">
  
    <span class="post-meta mr-2">
      <i class="iconfont icon-chart"></i>
      2.4k 字
    </span>
  

  
    <span class="post-meta mr-2">
      <i class="iconfont icon-clock-fill"></i>
      
      
      8 分钟
    </span>
  

  
  
    
      <!-- 不蒜子统计文章PV -->
      <span id="busuanzi_container_page_pv" style="display: none">
        <i class="iconfont icon-eye" aria-hidden="true"></i>
        <span id="busuanzi_value_page_pv"></span> 次
      </span>
    
  
</div>

            
          </div>

          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      

<div class="container-fluid nopadding-x">
  <div class="row nomargin-x">
    <div class="d-none d-lg-block col-lg-2"></div>
    <div class="col-lg-8 nopadding-x-md">
      <div class="container nopadding-x-md" id="board-ctn">
        <div class="py-5" id="board">
          <article class="post-content mx-auto">
            <!-- SEO header -->
            <h1 style="display: none">IDEA导入Spring源码</h1>
            
              <p class="note note-info">
                
                  本文最后更新于：6 个月前
                
              </p>
            
            <div class="markdown-body">
              <h1 id="IDEA导入Spring源码"><a href="#IDEA导入Spring源码" class="headerlink" title="IDEA导入Spring源码"></a>IDEA导入Spring源码</h1><h2 id="1-下载spring源码"><a href="#1-下载spring源码" class="headerlink" title="1.下载spring源码"></a>1.下载spring源码</h2><p> Spring源码现在在由github托管,git地址</p>
<blockquote>
<p><a target="_blank" rel="noopener" href="https://github.com/spring-projects/spring-framework/tree/5.1.x">https://github.com/spring-projects/spring-framework/tree/5.1.x</a></p>
<p><img src="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126191825760.png" srcset="/img/loading.gif" lazyload alt="image-20211126191825760"></p>
</blockquote>
<p><img src="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126191900085.png" srcset="/img/loading.gif" lazyload alt="image-20211126191900085"></p>
<p>先把源码下载好，推荐5.0X或者5.1X</p>
<h2 id="2-下载gradle"><a href="#2-下载gradle" class="headerlink" title="2.下载gradle"></a>2.下载gradle</h2><p>安装配置gradle环境变量</p>
<ul>
<li>To build you will need Git and JDK 8 update 60 or later. Be sure that your JAVA_HOME environment variable points to the jdk1.8.0 folder extracted from the JDK download.</li>
</ul>
<p>所以安装前要确保javahome在jdk<strong>1.8.0.60</strong>以上版本 </p>
<p>在下载之前，先找到我们下载的源码，spring-framework\gradle\wrapper下面的gradle-wrapper.properties文件，</p>
<p>打开先瞅两眼！</p>
<p><img src="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126194001815.png" srcset="/img/loading.gif" lazyload alt="/image-20211126194001815"></p>
<p>打开后可以看到 默认是去gradle仓库下载指定版本的，</p>
<p>所以接下来我们下载的时候最好下载适配版本，不然很容易出现各种奇奇怪怪的错误。</p>
<p><img src="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126194132893.png" srcset="/img/loading.gif" lazyload alt="/image-20211126194132893"></p>
<p>gradle下载地址</p>
<blockquote>
<p><a target="_blank" rel="noopener" href="https://services.gradle.org/distributions/">https://services.gradle.org/distributions/</a></p>
</blockquote>
<p>配置gradle的环境变量</p>
<p><img src="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126192740437.png" srcset="/img/loading.gif" lazyload alt="/image-20211126192740437"></p>
<p><img src="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126192813164.png" srcset="/img/loading.gif" lazyload alt="image-20211126192813164"></p>
<p>下面这个是gradle的仓库位置，自己选地方放就行了，注意二级目录是.gradle不能改。</p>
<p><img src="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126192852129.png" srcset="/img/loading.gif" lazyload alt="image-20211126192852129"></p>
<p><img src="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126193015207.png" srcset="/img/loading.gif" lazyload alt="image-20211126193015207"></p>
<p>如果不改的话默认就会在C盘用户下面的创建一个.gradle</p>
<p><img src="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126195925377.png" srcset="/img/loading.gif" lazyload alt="image-20211126195925377"></p>
<p>最后把path添加上</p>
<p><img src="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126193245885.png" srcset="/img/loading.gif" lazyload alt="image-20211126193245885"></p>
<p>配好之后可以在cmd上输入 gradle -v检测是否配成功</p>
<p><img src="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126193343526.png" srcset="/img/loading.gif" lazyload alt="image-20211126193343526"></p>
<p>其实这一步不做也可以，主要是为了之后使用方便，如果是单纯的构建源码可以省略这步。</p>
<h2 id="3-构建源码"><a href="#3-构建源码" class="headerlink" title="3.构建源码"></a>3.构建源码</h2><p>我们先选中下载好的源码，直接open打开即可。</p>
<p>先打开IDEA的Settings  –&gt; Plugins 检查有没有下载好插件</p>
<p><img src="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126193538024.png" srcset="/img/loading.gif" lazyload alt="image-20211126193538024"></p>
<p>插件安装好之后 在Settings找到Gradle</p>
<p><img src="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126193820036.png" srcset="/img/loading.gif" lazyload alt="image-20211126193820036"></p>
<p>可以看到这里可以选择是用gradle-wrapper.properties指定的地址下载gradle，默认会先去你指定的仓库先找，找不到就去下载。也可以使用本地的gradle。建议使用本地gradle。</p>
<p><img src="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126195251922.png" srcset="/img/loading.gif" lazyload alt="image-20211126195251922"></p>
<p>配置好之后 我们找到build.gradle文件，配置上国内镜像 下载速度会快很多</p>
<figure class="highlight properties"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><code class="hljs properties"><span class="hljs-attr">allprojects</span> <span class="hljs-string">&#123;</span><br>			<span class="hljs-attr">repositories</span> <span class="hljs-string">&#123;</span><br>				<span class="hljs-attr">maven</span> <span class="hljs-string">&#123; url &#x27;https://maven.aliyun.com/repository/gradle-plugin&#x27; &#125;</span><br>				<span class="hljs-attr">maven</span> <span class="hljs-string">&#123; url &#x27;https://maven.aliyun.com/repository/google&#x27; &#125;</span><br>				<span class="hljs-attr">maven</span> <span class="hljs-string">&#123; url &#x27;https://maven.aliyun.com/repository/jcenter&#x27;&#125;</span><br>			<span class="hljs-attr">&#125;</span><br>		<span class="hljs-attr">&#125;</span><br></code></pre></td></tr></table></figure>



<p><img src="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126195730078.png" srcset="/img/loading.gif" lazyload alt="image-20211126195730078"></p>
<p>然后等待构建完成即可</p>
<h2 id="4-常见错误"><a href="#4-常见错误" class="headerlink" title="4.常见错误"></a>4.常见错误</h2><p>这里列举一些遇到的坑</p>
<p>第一个</p>
<p><img src="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126200402355.png" srcset="/img/loading.gif" lazyload alt="image-20211126200402355"></p>
<p>报找不到这个插件，反正网上试了各种办法都不行，然后换了个idea就没这个错误了。。。这个错误用的是IDEA2019.3.1报的。然后我用2018.2.3和2021.1都没这个问题。感兴趣的自己钻研。。。。。。。</p>
<p>附上版本适配图</p>
<p><img src="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126200816658.png" srcset="/img/loading.gif" lazyload alt="image-20211126200816658"></p>
<p><img src="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126200826599.png" srcset="/img/loading.gif" lazyload alt="image-20211126200826599"></p>
<p>第二个  </p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs java">Unable to find method <span class="hljs-string">&#x27;org.gradle.api.artifacts.result.ComponentSelectionReason.getDescription()Ljava/lang/String;&#x27;</span>.<br>Possible causes <span class="hljs-keyword">for</span> <span class="hljs-keyword">this</span> unexpected error include:&lt;ul&gt;&lt;li&gt;Gradle<span class="hljs-string">&#x27;s dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)</span><br><span class="hljs-string">Re-download dependencies and sync project (requires network)&lt;/li&gt;&lt;li&gt;The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.</span><br><span class="hljs-string">Stop Gradle build processes (requires restart)&lt;/li&gt;&lt;li&gt;Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.&lt;/li&gt;&lt;/ul&gt;In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.</span><br><span class="hljs-string"></span><br></code></pre></td></tr></table></figure>

<p><img src="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126200934973.png" srcset="/img/loading.gif" lazyload alt="image-20211126200934973"></p>
<p>这个问题出现的可能有两种，</p>
<p>1、gradle不适配，换几个试试。gradle得和spring源码还有IDEA都适配。巨坑</p>
<p><img src="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126201658911.png" srcset="/img/loading.gif" lazyload alt="image-20211126201658911"></p>
<p>2、IDEA版本太低！就是这个问题搞了我三个小时！！！！我用2021.1的IDEA就解决了这个错误</p>
<p>第三个</p>
<p><img src="http://www.slx.blue/2021/12/03/IDEA_Import_SpringCode/image-20211126201335041.png" srcset="/img/loading.gif" lazyload alt="image-20211126201335041"></p>
<p>这个错误。。，gradle版本太低了。和源码不适配，得往高了换。换了一般都能解决。</p>
<p>第四个</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs java">Caused by: java.lang.NoSuchMethodError: org.gradle.api.artifacts.ProjectDependency.getConfiguration<br></code></pre></td></tr></table></figure>

<p>如果 <em>build.gradle</em> 文件包含 <strong>spring-boot-gradle-plugin，</strong>升级其版本 或者其他插件版本低了</p>
<p>第五个 jar包找不到问题，百度很好解决。</p>

            </div>
            <hr>
            <div>
              <div class="post-metas mb-3">
                
                  <div class="post-meta mr-3">
                    <i class="iconfont icon-category"></i>
                    
                      <a class="hover-with-bg" href="/categories/spring/">spring</a>
                    
                  </div>
                
                
                  <div class="post-meta">
                    <i class="iconfont icon-tags"></i>
                    
                      <a class="hover-with-bg" href="/tags/spring/">spring</a>
                    
                  </div>
                
              </div>
              
                <p class="note note-warning">
                  
                    本博客目前大部分文章都是参考尚硅谷或者马士兵教育的学习资料！<a href="http://www.atguigu.com/" rel="nofollow noopener"官网地址！</a> 
                  
                </p>
              
              
                <div class="post-prevnext">
                  <article class="post-prev col-6">
                    
                    
                      <a href="/2021/12/04/spring-day01/">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile">spring-day01-XML</span>
                        <span class="visible-mobile">上一篇</span>
                      </a>
                    
                  </article>
                  <article class="post-next col-6">
                    
                    
                      <a href="/2021/12/03/mybatis04/">
                        <span class="hidden-mobile">mybatis-缓存</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </article>
                </div>
              
            </div>

            
              <!-- Comments -->
              <article class="comments" id="comments" lazyload>
                
                  
                
                

              </article>
            
          </article>
        </div>
      </div>
    </div>
    
      <div class="d-none d-lg-block col-lg-2 toc-container" id="toc-ctn">
        <div id="toc">
  <p class="toc-header"><i class="iconfont icon-list"></i>&nbsp;目录</p>
  <div class="toc-body" id="toc-body"></div>
</div>

      </div>
    
  </div>
</div>

<!-- Custom -->


    

    
      <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
    

    
  </main>

  <footer class="text-center mt-5 py-3">

  <div class="footer-content">
     <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a> 
	<!--《添加网站运行时间 -->
<br/>

<span id="timeDate">载入天数...</span><span id="times">载入时分秒...</span>
<script>
var now = new Date(); 

function createtime() {
    //此处修改你的建站时间或者网站上线时间
    var grt = new Date('11/02/2021 21:39:00');
    now.setTime(now.getTime() + 250);
    days = (now - grt) / 1000 / 60 / 60 / 24;

    dnum = Math.floor(days);
    hours = (now - grt) / 1000 / 60 / 60 - (24 * dnum);
    hnum = Math.floor(hours);
    if (String(hnum).length == 1) {
        hnum = "0" + hnum;
    }
    minutes = (now - grt) / 1000 / 60 - (24 * 60 * dnum) - (60 * hnum);
    mnum = Math.floor(minutes);
    if (String(mnum).length == 1) {
        mnum = "0" + mnum;
    }
    seconds = (now - grt) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum);
    snum = Math.round(seconds);
    if (String(snum).length == 1) {
        snum = "0" + snum;
    }
    document.getElementById("timeDate").innerHTML = " 本站已各种夹缝中安全运行 " + dnum + " 天 ";
    document.getElementById("times").innerHTML = hnum + " 小时 " + mnum + " 分 " + snum + " 秒";
}
setInterval("createtime()", 250);
</script>

<!-- 添加网站运行时间》-->
  </div>
  
  <div class="statistics">
    
    

    
      
        <!-- 不蒜子统计PV -->
        <span id="busuanzi_container_site_pv" style="display: none">
            总访问量 
            <span id="busuanzi_value_site_pv"></span>
             次
          </span>
      
      
        <!-- 不蒜子统计UV -->
        <span id="busuanzi_container_site_uv" style="display: none">
            总访客数 
            <span id="busuanzi_value_site_uv"></span>
             人
          </span>
      
    
  </div>


  

  
</footer>


  <!-- SCRIPTS -->
  
  <script  src="https://cdn.jsdelivr.net/npm/nprogress@0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nprogress@0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js" ></script>
<script  src="https://cdn.jsdelivr.net/npm/bootstrap@4/dist/js/bootstrap.min.js" ></script>
<script  src="/js/events.js" ></script>
<script  src="/js/plugins.js" ></script>

<!-- Plugins -->


  <script  src="/js/local-search.js" ></script>



  
    <script  src="/js/img-lazyload.js" ></script>
  



  



  
    <script  src="https://cdn.jsdelivr.net/npm/tocbot@4/dist/tocbot.min.js" ></script>
  
  
    <script  src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3/dist/jquery.fancybox.min.js" ></script>
  
  
    <script  src="https://cdn.jsdelivr.net/npm/anchor-js@4/anchor.min.js" ></script>
  
  
    <script defer src="https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js" ></script>
  



  <script defer src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" ></script>




  <script  src="https://cdn.jsdelivr.net/npm/typed.js@2/lib/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var title = document.getElementById('subtitle').title;
      
      typing(title)
      
    })(window, document);
  </script>















<!-- 主题的启动项 保持在最底部 -->
<script  src="/js/boot.js" ></script>


</body>
</html>
